package com.ctg.itrdc.sysmgr.portal.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.pasp.core.Entity;


@Table(name = "SYSUSER_COLLECTION")
public class SysuserCollection extends Entity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	/**
	 * 收藏标识，主键
	 */
	@Id
	@Column(name = "COLLECT_ID")
	private Long collectId;

	/**
	 * 收藏内容类型，LOVB
	 */
	@Column(name = "CONTENT_TYPE")
	private String contentType;

	/**
	 * 收藏内容标识，根据收藏内容类型，关联对应的表主键
	 */
	@Column(name = "CONTENT_ID")
	private Long contentId;

	/**
	 * 记录系统用户登录设置的创建人
	 */
	@Column(name = "CREATE_STAFF")
	private Long createStaff;

	/**
	 * 修改时间
	 */
	@Column(name = "UPDATE_DATE")
	private Timestamp updateDate;

	/**
	 * 状态变更的时间
	 */
	@Column(name = "STATUS_DATE")
	private Timestamp statusDate;

	/**
	 * 租户标识。
	 */
	@Column(name = "TENANT_ID")
	private Long tenantId;

	/**
	 * 分片键1，固定值-1。
	 */
	@Column(name = "SHARD1")
	private Long shard1;

	/**
	 * 修改人
	 */
	@Column(name = "UPDATE_STAFF")
	private Long updateStaff;

	/**
	 * 收藏人员对应工号
	 */
	@Column(name = "COLLECT_STAFF")
	private Long collectStaff;

	/**
	 * 分片键2，固定值-1。
	 */
	@Column(name = "SHARD2")
	private Long shard2;

	/**
	 * 记录系统用户登录设置的状态，如有效、无效等。
	 */
	@Column(name = "STATUS_CD")
	private String statusCd;

	/**
	 * 收藏时间
	 */
	@Column(name = "COLLECT_DATE")
	private Timestamp collectDate;

	/**
	 * 记录系统用户登录设置创建时间
	 */
	@Column(name = "CREATE_DATE")
	private Timestamp createDate;

	/**
	 * 系统用户标识。
	 */
	@Column(name = "SYS_USER_ID")
	private Long sysUserId;

	/**
	 * 收藏排序
	 */
	@Column(name = "COLLECT_SORT")
	private Integer collectSort;


	public void setCollectId(Long collectId){
		this.collectId = collectId;
	}

	public Long getCollectId(){
		return this.collectId;
	}

	public void setContentType(String contentType){
		this.contentType = contentType;
	}

	public String getContentType(){
		return this.contentType;
	}

	public void setContentId(Long contentId){
		this.contentId = contentId;
	}

	public Long getContentId(){
		return this.contentId;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setTenantId(Long tenantId){
		this.tenantId = tenantId;
	}

	public Long getTenantId(){
		return this.tenantId;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setCollectStaff(Long collectStaff){
		this.collectStaff = collectStaff;
	}

	public Long getCollectStaff(){
		return this.collectStaff;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setCollectDate(Timestamp collectDate){
		this.collectDate = collectDate;
	}

	public Timestamp getCollectDate(){
		return this.collectDate;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	public void setSysUserId(Long sysUserId){
		this.sysUserId = sysUserId;
	}

	public Long getSysUserId(){
		return this.sysUserId;
	}

	public void setCollectSort(Integer collectSort){
		this.collectSort = collectSort;
	}

	public Integer getCollectSort(){
		return this.collectSort;
	}

	@Override
	public Long getId() {
		return collectId;
	}
	
	@Override
	public void setId(Long id) {
		this.collectId = id;
	}
	
	public SysuserCollection() {
		super();
    }
}
